#ifndef NET_H
#define NET_H

#include <QObject>
#include <QDialog>
#include <QUdpSocket>
#include <QListWidget>
#include <QLineEdit>

class Net : public QDialog
{
    Q_OBJECT

    QUdpSocket *sok;
    QListWidget * w_list;
    QLineEdit * line;
    QLineEdit * ip;
    QLineEdit * port;

public:

    Net(char *v1, char * v2);

public slots:
    void SendMessage();
    void ReadMessage();
};

#endif // NET_H
